package com.ivan.eduservice.service;

import com.ivan.eduservice.entity.EduSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ivan.eduservice.entity.node.SubjectNode;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author Ivan
 * @since 2020-08-08
 */
public interface EduSubjectService extends IService<EduSubject> {

    /**
     * @Author Ivan
     * @Description 添加课程分类
     * @Date 2020/8/8 14:24
     * @Param 
     * @return 
     */
    void saveSubject(MultipartFile file, EduSubjectService subjectService);

    /**
     * @Author Ivan
     * @Description 课程分类列表（树形结构）
     * @Date 2020/8/9 11:38
     * @Param 
     * @return 
     */
    List<SubjectNode> getAllSubjectNodes();
}
